package com.softeem.ossmusic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 
 * @TableName music
 */
@Schema(description = "歌曲")
@TableName(value ="music")
@Data
public class Music {
    /**
     * 歌曲id
     */
    @Schema(description = "歌曲id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 歌曲名
     */
    @Schema(description = "歌曲名")
    private String name;

    /**
     * 歌曲风格
     */
    @Schema(description = "歌曲风格")
    private String style;

    /**
     * 歌手
     */
    @Schema(description = "歌手")
    private String singer;

    /**
     * 播放地址
     */
    @Schema(description = "播放地址")
    private String url;

    /**
     * 持续时长(秒)
     */
    @Schema(description = "持续时长(秒)")
    private Integer duration;

    /**
     * 标签
     */
    @Schema(description = "标签")
    private String tags;

    /**
     * 状态(0-下架,1-正常)
     */
    @Schema(description = "状态(0-下架,1-正常)")
    private Integer status;

    /**
     * 专辑id
     */
    @Schema(description = "专辑id")
    private Integer aid;

    @Schema(description = "专辑详情")
    @TableField(exist = false) //不映射数据库字段(数据库中不存在该字段)
    private Album album;
}